<?php
// 更改订单信息
// header("content-type:text/html;charset=utf-8");
include_once("conn.php");

$oid = $_POST['oid'];
$name = $_POST['name'];
$phone = $_POST['phone'];
$address = $_POST['address'];

$sql ="UPDATE tb_order_info SET o_name='".$name."',o_phone='".$phone."',o_address='".$address."' WHERE o_id='".$oid."'";
$result = mysqli_query($conn,$sql);
if($result){
    echo "<script>alert('修改信息成功！');window.location.href='../u_show_order.php';</script>";
}else{
    echo "<script>alert('修改失败请重试！');history.go(-1);</script>";
}